home *** CD-ROM | disk | FTP | other *** search
- on mouseUp
- global gQTVRInstanceXtra
- -- added JHB
- global gVRMovieNameViaXtra
-
- -- parameters: file (w/ path), sprite for location & size, show on open or not
- OpenMovieXtra gVRMovieNameViaXtra, 1, "visible"
-
- if IsQTVRMovie(gQTVRInstanceXtra) then
- if QTVRGetQTVRType(gQTVRInstanceXtra) = "QTVRPanorama" then
- go to frame "Pano"
-
- --put QTVRGetNodeID(gQTVRInstanceXtra) into member "Current Node ID"
- put QTVRGetNodeID(gQTVRInstanceXtra)
- --put QTVRGetWarpMode(gQTVRInstanceXtra) into member "warpmode"
- else
- go to frame "Object"
- QTVRUpdate(gQTVRInstanceXtra)
- end if
- else
- go to frame "Start"
- updateStage
- alert "Can't open file:" & return & return & quote & the text of member "Movie Filename" ¬
- & quote & return & return & "as a QTVR movie."
- end if
- end